package com.ferris.strategy;

public class ContextStrategy {

	/**
	 * 设置策略，产生一个新的策略
	 */
	private BaseStrategy strategy;

	public BaseStrategy getStrategy() {
		return strategy;
	}

	public void setStrategy(BaseStrategy strategy) {
		this.strategy = strategy;
	}
	
	
	public void CalBaseSrategy(int index){
		if(strategy!=null&&strategy instanceof BaseStrategy){
			strategy.daohang(index);
		}
	}
}
